﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Olympic_email_to_future.IDAL;
using Olympic_email_to_future.IBLL;
using Olympic_email_to_future.Module;
using Olympic_email_to_future.DALFactory;

namespace Olympic_email_to_future.BLL
{
    class AttachmentBLL:IAttachmentBLL
    {
        public static IAttachmentInfo dal = DALFactory.DataAccess.CreateAttachmentDAL();
        public IList<AttachmentInfo> dogetAttachmentInfoByMailId(int mailid)
        {
            return dal.getAttachmentInfoByMailId(mailid);
        }

        public void doinsertAttmentInfo(AttachmentInfo att)
        {
            dal.insertAttmentInfo(att);
        }
    }
}
